package com.example.practicespring.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.practicespring.domain.User;
import com.example.practicespring.service.UserService;
import com.example.practicespring.mapper.UserMapper;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
* @author LYT
* @description 针对表【user】的数据库操作Service实现
* @createDate 2024-08-16 14:23:20
*/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>
    implements UserService{


    @Override
    public List<String> selectRolesByUserId(Long userId) {
        return baseMapper.selectRolesByUserId(userId);
    }
}




